<?php

/*
 _               __      __         _           _      
(_)              \ \    / /        (_)         | |     
 _ _ __  _ __   ___ \  / /_ _ _ __  _  ___   __| | ___ 
| | '_ \| '_ \ / _ \ \/ / _` | '_ \| |/ __| / _` |/ _ \
| | | | | | | | (_) \  / (_| | | | | | (__ _ (_| |  __/
|_|_| |_|_| |_|\___/ \/ \__,_|_| |_|_|\___(_)__,_|\___|
innovative and unique

iV phpUp2 
Copyright 2008 www.innovanic.de
Original filename: captcha/ivtxtcaptcha.php

*/

@session_start();
unset($_SESSION['captcha_spam']);

function randomString($len)
{
    function make_seed()
    {
        list($usec, $sec) = explode(' ', microtime());
        return (float)$sec + ((float)$usec * 100000);
    }
    srand(make_seed());

    $characters = "0123456789";
    $str = "";
    while (strlen($str) < $len) {
        $str .= substr($characters, (rand() % (strlen($characters))), 1);
    }
    return ($str);
}

$iv_random_text = randomString(4);
$_SESSION['captcha_spam'] = $iv_random_text;

echo "<b>".$iv_random_text."</b>";
?>